//
//  ZMCommonFile.swift
//  ZMWeiboSwift
//
//  Created by pg on 2017/7/25.
//  Copyright © 2017年 pg. All rights reserved.
//

import UIKit

let keywindow = UIApplication.shared.keyWindow

//通知的定义
//切换导航控制器的通知
let SwitchRootVCNotificationName = "SwitchRootVCNotificationName"

//tabBar 红色小球计数显示和动画
let TabBatRedViewCountChangedNotification = "TabBatRedViewCountChangedNotification"


//添加商品到购物车按钮点击事件的通知
let AddToShoppingCarViewNotification = "addToShoppingCarViewNotification"

//展示商品的cell点击 发送的通知
let ShowProductCellDidSelectedNotification = "ShowProductCellDidSelectedNotification"


//从购物车删除商品按钮点击事件的通知
let SubFromShoppingCarViewNotification = "SubFromShoppingCarViewNotification"

//记录当前屏幕的尺寸
let ScreenWidth = UIScreen.main.bounds.size.width
let ScreenHeight = UIScreen.main.bounds.size.height




//创建颜色
func RandowColor()->(UIColor){
    
    //产生水机数
    let red = CGFloat(arc4random_uniform(256))/255.0
    let green = CGFloat(arc4random_uniform(256))/255.0
    let blue = CGFloat(arc4random_uniform(256))/255.0
    
  let color =  UIColor(red: red, green: green, blue: blue, alpha: 1.0)
    return color
}



